import request from '@/utils/request'

export function getProList (parameter) {
  return request({
    url: '/boss/message/pro/list',
    method: 'post',
    data: parameter
  })
}
export function getMessageList (parameter) {
  return request({
    url: '/boss/project/message/listByPage',
    method: 'post',
    data: parameter
  })
}
export function getUnread (parameter) {
  return request({
    url: '/boss/project/message/badge',
    method: 'post',
    data: parameter
  })
}
export function updateMessage (parameter) {
  return request({
    url: '/boss/project/message/update',
    method: 'post',
    data: parameter
  })
}
export function isProjectPm (parameter) {
  return request({
    url: '/boss/project/team/isProjectPm',
    method: 'get',
    params: parameter
  })
}

export function apiRecordViewMsg (parameter) {
  return request({
    url: '/boss/project/message/detail',
    method: 'get',
    params: parameter
  })
}

export function listTodoByPage (parameter) {
  return request({
    url: '/boss/project/message/listTodoByPage',
    method: 'post',
    data: parameter
  })
}

export function listProNoTodo (parameter) {
  return request({
    url: '/boss/project/message/listProNoTodo',
    method: 'post',
    data: parameter
  })
}

export function checkUserForProOrSysUser (parameter) {
  return request({
    url: '/boss/project/team/checkUserForProOrSysUser',
    method: 'get',
    params: parameter
  })
}
